package com.sky.mapper;

import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: HuoXu
 * @Date: 2023/07/21/17:30
 * @Description: 快乐跳跳虎
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入口味数据
     * @param dishFlavors
     */
    void addDishFlavor(List<DishFlavor> dishFlavors);

    void deleteFlavorByDishId(List<Long> ids);
    @Select("select * from dish_flavor where dish_id=#{id};")
    List<DishFlavor> queryByDishId(Long id);

}
